from django.test import TestCase
from .models import Movie

class MovieModelTest(TestCase):
    def setUp(self):
        Movie.objects.create(title="测试电影", genre="测试类型", duration=120, director="测试导演", actors="测试演员")

    def test_movie_title(self):
        movie = Movie.objects.get(title="测试电影")
        self.assertEqual(movie.title, "测试电影")